import request from '@/utils/request'

// 查询YmActivityOrder列表
export function listYmActivityOrder(query) {
    return request({
        url: '/api/v1/order/activity/orderList',
        method: 'get',
        params: query
    })
}

// 查询YmActivityOrder详细
export function getYmActivityOrder (orderId) {
    return request({
        url: '/api/v1/ymactivityorder/' + orderId,
        method: 'get'
    })
}


// 新增YmActivityOrder
export function addYmActivityOrder(data) {
    return request({
        url: '/api/v1/ymactivityorder',
        method: 'post',
        data: data
    })
}

// 修改YmActivityOrder
export function updateYmActivityOrder(data) {
    return request({
        url: '/api/v1/ymactivityorder',
        method: 'put',
        data: data
    })
}

// 删除YmActivityOrder
export function delYmActivityOrder(orderId) {
    return request({
        url: '/api/v1/ymactivityorder/' + orderId,
        method: 'delete'
    })
}

